namespace Mbl.ParameterizedTest.FluentCollectionBuilding.Expectors.IntExpectations
{
    public class LessThanExpectation : PredicateExpectation<int>
    {
        private readonly int _expected;

        public LessThanExpectation(int expected)
            : base(actual => actual < expected)
        {
            _expected = expected;
        }

        protected override string GetErrorMessage(int actual)
        {
            return $"Expected a value less than <{_expected}>. Actual <{actual}>.";
        }        
    }
}